<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>v-text</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <!-- v-text等价于{{}}，相当于js的text属性 -->
    <span v-text="msg"></span>
    <!-- 等价于 -->
    <!-- <span>{{msg}}</span> -->
</body>
<script>
    new Vue({
        el:"span",
        data:{
            msg:"你好，vue",
        }
    })
</script>
</html>